package com.wanmait.baohan.pojo;

import java.io.Serializable;
import java.util.Date;

public class DailyPlan implements Serializable {
    private Integer id;

    /**
     * 员工id
     */
    private Staff staff;

    /**
     * 时间
     */
    private Date startTime;

    /**
     * 终止时间
     */
    private Date endTime;

    /**
     * 工作
     */
    private String work;

    /**
     * 优先级
     */
    private Integer priority;

    private String title;

    /**
     * 0未开始 1正在进行 3已完成
     */
    private Integer enable;

    /**
     * 分配任务的人
     */
    private Integer assignedById;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getAssignedById() {
        return assignedById;
    }

    public void setAssignedById(Integer assignedById) {
        this.assignedById = assignedById;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", staffId=").append(staff.getId());
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", work=").append(work);
        sb.append(", priority=").append(priority);
        sb.append(", title=").append(title);
        sb.append(", enable=").append(enable);
        sb.append(", assignedById=").append(assignedById);
        sb.append("]");
        return sb.toString();
    }
}